<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/pages/common/header.jsp"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>Transport Billing System</title>
		<script type="text/javascript" src="${jsContext}/utility.js"></script>
	</head>
	<body class="mainbody" onload="msgDisplay('${param.message}');">
	<c:set var="traderObj" value="${requestScope.traderObj}" />
	<c:forEach var="trader" items="${traderObj}" varStatus="counter">
		<c:set var="upCompanyId" value="${trader.companyId}"></c:set>
		<c:set var="upCompanyName" value="${trader.companyName}"></c:set>
		<c:set var="upEmailId" value="${trader.emailId}"></c:set>
		<c:set var="upAdress" value="${trader.address}"></c:set>
		<c:set var="upContactNo" value="${trader.contactNo}"></c:set>
		<c:set var="upMobileNo" value="${trader.mobileNo}"></c:set>
		<c:set var="upPanNo" value="${trader.panNo}"></c:set>
		<c:set var="upMultiplyFactor" value="${trader.mulFactor}"></c:set>
		<c:set var="upLandingCost" value="${trader.landingCost}"></c:set>
		
		<c:set var="upBankName" value="${trader.bankName}"></c:set>
		<c:set var="upAccountNO" value="${trader.accountNo}"></c:set>
		<c:set var="upIFSCCode" value="${trader.ifscCode}"></c:set>
		<c:set var="upMicrCode" value="${trader.micrCode}"></c:set>
		<c:set var="upDesc" value="${trader.desc}"></c:set>
		<c:set var="upExtraField1" value="${trader.extraField1}"></c:set>
	</c:forEach>
		<div class="mainContainer">
			<section class="bodyContainer">
	
				<div id="upload" class="productReport">
					<div class="divclear">
						<form id="transportExcel" method="post"
							action="${context}/transport" enctype="multipart/form-data">
							<input type="hidden" name="ACTION" value="UPEX"> <span
								class="loginlabel">Excel Upload : </span> <span
								class="logininputFld"> <input class="" type="file"
								name="excelUpload" size="30" value=""> </span> <span
								class="buttonSiyora button80"> <a><input type="submit"
									value="Save" /> </a> </span>
						</form>
					</div>
				</div>
		
				<div id="addTraders" class="productReport">
					<h2 class="titleTxtBig">Traders Specifications</h2>
					<p class="hrlineBr"></p>
					<form id="traderEntryForm" method="post" action="${context}/traderEntry">
						<c:choose>
						<c:when test="${empty traderObj}">
							<input type="hidden" name="ACTION" value="AT">
						</c:when>
						<c:otherwise>
							<input type="hidden" name="ACTION" value="UT">
							<input type="hidden" name="companyId" value="${upCompanyId}">
						</c:otherwise>
						</c:choose>
						
						<div class="productSfcField">
							<div class="divclear">
								<span class="loginlabel">Traders Name : </span> <span
									class="logininputFld"> <input class="loginfld" id="traderName"
									name="traderName" type="text" value="${upCompanyName}"> </span>
							</div>
							<p class="spacerTopTen"></p>
							<div class="divclear">
								<span class="loginlabel">Address : </span> <span
									class="abouttxtarea"> <textarea class="logintxtarea"
										name="traderAddress" cols="" rows="">${upAdress}</textarea> </span>
							</div>
							<p class="spacerTopTen"></p>
							<div class="divclear">
								<span class="loginlabel">Contact No : </span> <span
									class="logininputFld"> <input class="loginfld" id="traderContactNo"
									name="traderContactNo" type="text" value="${upContactNo}"> </span>
							</div>
							<p class="spacerTopTen"></p>
							<div class="divclear">
								<span class="loginlabel">Mobile No : </span> <span
									class="logininputFld"> <input class="loginfld" id="traderMobileNo"
									name="traderMobileNo" type="text" value="${upMobileNo}"> </span>
							</div>
							
							<p class="spacerTopTen"></p>
							<div class="divclear">
								<span class="loginlabel">Email Address : </span> <span
									class="logininputFld"> <input class="loginfld" id="traderEmailId"
									name="traderEmailId" type="text" value="${upEmailId}"> </span>
							</div>
							<p class="spacerTopTen"></p>
							<div class="divclear">
								<span class="loginlabel">Loss Quantity Multiplying factor : </span> <span
									class="logininputFld"> <input class="loginfld" id="mulFactor"
									name="mulFactor" type="text" value="${upMultiplyFactor}"> </span>
							</div>
							<p class="spacerTopTen"></p>
							<div class="divclear">
								<span class="loginlabel">Loss Quantity Rate per M.T. : </span> <span
									class="logininputFld"> <input class="loginfld" id="lossQuanPerMT"
									name="lossQuanPerMT" type="text" value="${upExtraField1}"> </span>
							</div>
						
							
							<p class="spacerTopTen"></p>
							<div class="divclear">
								<span class="loginlabel">Rate Per M.T. : </span> <span
									class="logininputFld"> <input class="loginfld" id="landingCost"
									name="landingCost" type="text" value="${upLandingCost}"> </span>
							</div>
							
							<p class="spacerTopTen"></p>
							<div class="divclear">
								<span class="loginlabel">PAN No : </span> <span
									class="logininputFld"> <input class="loginfld" id="traderPanNo"
									name="traderPanNo" type="text" value="${upPanNo}"> </span>
							</div>
							<p class="spacerTopTen"></p>
							
							<p class="spacerTopTen"></p>
							<div class="divclear">
								<span class="loginlabel">Bank Name : </span> <span
									class="logininputFld"> <input class="loginfld" id="bankName"
									name="bankName" type="text" value="${upBankName}"> </span>
							</div>
							
							<p class="spacerTopTen"></p>
							<div class="divclear">
								<span class="loginlabel">Account No : </span> <span
									class="logininputFld"> <input class="loginfld" id="accountNo"
									name="accountNo" type="text" value="${upAccountNO}"> </span>
							</div>
							
							<p class="spacerTopTen"></p>
							<div class="divclear">
								<span class="loginlabel">IFSC Code : </span> <span
									class="logininputFld"> <input class="loginfld" id="ifscCode"
									name="ifscCode" type="text" value="${upIFSCCode}"> </span>
							</div>
							
							<p class="spacerTopTen"></p>
							<div class="divclear">
								<span class="loginlabel">Micr Code : </span> <span
									class="logininputFld"> <input class="loginfld" id="micrCode"
									name="micrCode" type="text" value="${upMicrCode}"> </span>
							</div>
							<p class="spacerTopTen"></p>
							<div class="divclear">
								<span class="loginlabel">Loss Difference (in Ton) :</span> <span
									class="logininputFld"> <input class="loginfld" id="differenceValue"
									name="traderDesc" type="text" value="${upDesc}"> </span>
							</div>
							<p class="spacerTopTen"></p>
		
							<p class="spacerTopTen"></p>
							<p class="spacerTopTen"></p>
							<p class="spacerTopTen"></p>
							<div class="divclear">
								<span class="loginlabel"></span> <span
									class="buttonSiyora button80"> <a href=""><input
										type="submit" value="Save" /> </a> </span>
							</div>
							<p class="spacerTopTen"></p>
							<p class="spacerTopTen"></p>
							<p class="spacerTopTen"></p>
		
						</div>
		
					</form>
				</div>
			</section>
		</div>
		<jsp:include page="/pages/common/footer.jsp" />
	</body>
</html>
